const { program } = require("commander");

function options() {
  const version = require("../package.json").version;

  //version
  program.version(version, "-v, --version");

  //options操作
  program.option("-g, --gcli", "a cli tool");
  program.option("-d --dest <dest>", "a foldre , for example: -d src/home");
  program.on("--help", () => {
    console.log("");
    console.log("other:");
    console.log("  xxx");
    console.log("  yyy");
  });
}

module.exports = options;
